import $ from '../common';
Page({
  data: {
    isIphoneX: $.gData().isIphoneX,
  },
  onLoad(e) {
    this.setData({
      zonecode: wx.getStorageSync('addresscode') || '',
    })
  },
  onShow() {

  },
  loginOut(){
    $.actionSheet(["确定"], (index) => {
			$.get("/user/logout", {}, (e) => {
				wx.removeStorageSync('token')
        wx.removeStorageSync('phone')
        wx.removeStorageSync('addresscode')
        wx.removeStorageSync('address')
				wx.reLaunch({
					url: '../login/index'
				})
			})
		})  
  }
})